package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 签到表
* </p>
*
* @author wsl
* @since 2022-05-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sign_in")
@ApiModel(value = "SignIn对象", description = "签到表")
public class SignIn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("工号")
    private Integer workId;

    @ApiModelProperty("签到日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate signDate;

    @ApiModelProperty("签到时间")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalTime signTime;

    @ApiModelProperty("0手动 1系统打卡(无效)")
    private Integer status;

    @ApiModelProperty("状态集合")
    @TableField(exist = false)
    private String statusList;

}
